<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Message.aspx.cs" Inherits="ScrewTurn.Wiki.MessagePage" Title="Untitled Page" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<asp:Content ID="CtnMessage" ContentPlaceHolderID="CphMaster" Runat="Server">

    <h1 class="pagetitlesystem" id="MainTitle"><asp:Literal ID="lblMessageTitle" runat="server" meta:resourcekey="lblMessageTitleResource1" Text="Message" /></h1>
   
    <table cellpadding="0" cellspacing="4">
        <tr>
            <td><p style="text-align: right;"><asp:Literal ID="lblRecipient" runat="server" meta:resourcekey="lblRecipientResource1" Text="Recipient" />:</p></td>
            <td><asp:TextBox ID="txtRecipient" runat="server" Width="250px" meta:resourcekey="txtRecipientResource1" ToolTip="Type here the recipient's Username" /></td>
        </tr>
        <tr>
            <td><p style="text-align: right;"><asp:Literal ID="lblSubject" runat="server" meta:resourcekey="lblSubjectResource1" Text="Subject" />:</p></td>
            <td><asp:TextBox ID="txtSubject" runat="server" Width="450px" meta:resourcekey="txtSubjectResource1" ToolTip="Type here the Subject" /></td>
        </tr>
        <tr>
            <td valign="top"><p style="text-align: right;"><asp:Literal ID="lblBody" runat="server" meta:resourcekey="lblBodyResource1" Text="Body" />:</p></td>
            <td><asp:TextBox ID="txtBody" runat="server" Width="650px" Height="300px" TextMode="MultiLine" meta:resourcekey="txtBodyResource1" ToolTip="Type here the Body" /></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <p><asp:Button ID="btnSend" runat="server" Text="Send" OnClick="btnSend_Click" meta:resourcekey="btnSendResource1" ToolTip="Click to send the Message" />
                    <asp:Literal ID="lblResult" runat="server" meta:resourcekey="lblResultResource1" />
                </p> 
            </td>
        </tr>
    </table>
   
    <script type="text/javascript">
    <!-- 
        function __ResizeTextbox() {
            __GetServerElementById("txtBody").style["width"] = document.getElementById("MainTitle").scrollWidth - 100 + "px";
        }
        __ResizeTextbox();
        window.onresize = __ResizeTextbox;
        if(__GetServerElementById("txtRecipient").value == "") __GetServerElementById("txtRecipient").focus();
        else __GetServerElementById("txtSubject").focus();
    // -->
    </script>

</asp:Content>
